package $PACKAGE_NAME$.client.activity;

import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.place.shared.Place;
import $PACKAGE_NAME$.client.ClientFactory;
import $PACKAGE_NAME$.client.place.BasicPlace;
import $PACKAGE_NAME$.client.view.BasicView;

public abstract class AbstractBasicActivity<V extends BasicView<?>> extends AbstractActivity
    implements BasicView.Presenter {

  protected final ClientFactory clientFactory;

  protected final BasicPlace place;

  protected V view;

  public AbstractBasicActivity(ClientFactory clientFactory, BasicPlace place) {
    this.clientFactory = clientFactory;
    this.place = place;
  }

  @Override
  public void goTo(Place place) {
    clientFactory.getPlaceController().goTo(place);
  }

}
